body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f0f0f0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.container {
    width: 90%;
    max-width: 1600px;
    background-color: white;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    min-height: 90vh;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #e0e0e0;
}

nav, .actions, .user-actions {
    display: flex;
    align-items: center;
}

button {
    margin: 0 5px;
    padding: 5px 10px;
    border: none;
    background-color: #f0f0f0;
    cursor: pointer;
}

.green {
    background-color: #4CAF50;
    color: white;
}

.plus-btn {
    background-color: #FFA500;
    color: white;
}





.tags {
    margin-bottom: 10px;
}

.tag {
    display: inline-block;
    padding: 2px 5px;
    background-color: #e0e0e0;
    margin-right: 5px;
    border-radius: 3px;
    font-size: 0.8em;
}

.editor-header {
    background-color: #f0f0f0;
    padding: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}



.result-area {
    padding: 20px;
    background-color: #f0f0f0;
    border-top: 1px solid #ccc;
}

#result-display {
    white-space: pre-wrap;
    word-wrap: break-word;
    max-height: 200px;
    overflow-y: auto;
}



.CodeMirror {
    flex-grow: 1;
    height: auto;
    min-height: 300px; /* 设置一个最小高度 */
}


main {
    display: flex;
    flex-direction: row;
    height: calc(100vh - 200px);
}

.problem-description {
    flex: 0.8;
    overflow-y: auto;
    padding-left: 20px;
}

.code-editor {
    flex: 0.8;
    display: flex;
    padding-right: 20px;
    flex-direction: column;
}